var webpack = require('webpack'); 
var page = "test"; //新起项目时修改
 
module.exports = {   

	//文件入口
	entry: {
		index: './controller/'+page+'/dev.js',
	},
	
	//入口文件输出配置
	output: {
		path:'./controller/'+page+'/',
		//publicPath:"http://localhost:8088/git/mvc/",
		filename: '[name].js'
	},
	
	//loaders
    module: {
        loaders: [
           { test: /\.css$/, loader: "style!css" },
           { test: /\.(png|jpg)$/, loader:  'url-loader?limit=8192&name=statics/img/'+page+'/[name].[ext]'}
            // { test: /\.(png|jpg)$/, loader: 'file-loader?name=/img/'+page+'/[name].[ext]’} 
        ]
    }

};
